package com.tjzx.struts.news;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.struts.ActionSupport;

import com.tjzx.service.TVoteInfoService;

public class EipNewsInfoAction extends ActionSupport {

	@Override
	public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
		WebApplicationContext ctx = this.getWebApplicationContext();
		TVoteInfoService ts = (TVoteInfoService)ctx.getBean("tVoteInfoService");
		ts.getAll();
		return mapping.findForward("success");
	}
	
}
